﻿using System;
using System.Collections.Generic;
using System.Text;

namespace proxyTest
{
    class ProxyUrl
    {
        public string proxy;
        public int port;
        public ProxyUrl()
        {
            proxy = "127.0.0.1";
            port = 80;
        }
        public ProxyUrl(string proxyUrl)
        {
            LoadFromStr(proxyUrl);
        }
        public void LoadFromStr(string proxyUrl)
        {
            char[] c = { ':' };
            string[] outstring = proxyUrl.Split(c);
            proxy = outstring[0];
            port = int.Parse(outstring[1]);
        }
    }
}